473,425 Members | 1,560 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

URL encryption

Is there some handy URLs encryption method, to convert it into a
non-user readble format that still works on all browsers? I saw some
examples which escapes characters in the URL address into the 'escaped'
representation, but they may be suitable for long URLs, its too
noticeable and simplified for short URLs..

Jul 4 '06 #1
4 10785
mistral wrote:
Is there some handy URLs encryption method, to convert it into a
non-user readble format that still works on all browsers? I saw some
examples which escapes characters in the URL address into the 'escaped'
representation, but they may be suitable for long URLs, its too
noticeable and simplified for short URLs..
Hi,

You could have a look at mod_rewrite for Apache, but I don't expect
encrypting/decrypting an URL will be 'handy'.

Of course, the domain should stay intact.
eg:
http://www.example.com/mydir/mysubdir/myscript.php
could be converted into something like:
http://www.example.com/jHgyrRWfdjkLKhj

where you decode jHgyrRWfdjkLKhj into mydir/mysubdir/myscript.php

I am curious: What is the point?
Do you want to hide pathinfo?
If so: That won't give real security, only obscurity.

Regards,
Erwin Moller
Jul 5 '06 #2

Erwin Moller писал(а):
mistral wrote:
Is there some handy URLs encryption method, to convert it into a
non-user readble format that still works on all browsers? I saw some
examples which escapes characters in the URL address into the 'escaped'
representation, but they may be suitable for long URLs, its too
noticeable and simplified for short URLs..
Hi,
You could have a look at mod_rewrite for Apache, but I don't expect
encrypting/decrypting an URL will be 'handy'.
Of course, the domain should stay intact.
eg:
http://www.example.com/mydir/mysubdir/myscript.php
could be converted into something like:
http://www.example.com/jHgyrRWfdjkLKhj
where you decode jHgyrRWfdjkLKhj into mydir/mysubdir/myscript.php
I am curious: What is the point?
Do you want to hide pathinfo?
If so: That won't give real security, only obscurity.
Regards,
Erwin Moller

Hi,

not sure for mod_rewrite for Apache, I have no unix. The point is
obscure URL, to hide patch info, include domain.

thanks
Mistral

Jul 5 '06 #3
mistral wrote:
>
Erwin Moller ?????(?):
>mistral wrote:

Is there some handy URLs encryption method, to convert it into a
non-user readble format that still works on all browsers? I saw some
examples which escapes characters in the URL address into the 'escaped'
representation, but they may be suitable for long URLs, its too
noticeable and simplified for short URLs..
>Hi,
>You could have a look at mod_rewrite for Apache, but I don't expect
encrypting/decrypting an URL will be 'handy'.
>Of course, the domain should stay intact.
eg:
http://www.example.com/mydir/mysubdir/myscript.php
could be converted into something like:
http://www.example.com/jHgyrRWfdjkLKhj
>where you decode jHgyrRWfdjkLKhj into mydir/mysubdir/myscript.php
>I am curious: What is the point?
Do you want to hide pathinfo?
If so: That won't give real security, only obscurity.
>Regards,
Erwin Moller


Hi,

not sure for mod_rewrite for Apache, I have no unix. The point is
obscure URL, to hide patch info, include domain.
Hi,

mod_rewrite is indeed Apache only, but Apache is running great on W$ for
years now. (From W2000 and higher)
No reason to stick with that securityhole called IIS if you can get Apache
for free. (if you use IIS in the first place. :P )

If you are stuck with IIS for some reason, I don't know how to do the trick
easily.

Of course you can roll your own, like this:
http://example.com/redirectme.php?obsured=HUIKHKJJHG
where you translate HUIKHKJJHG to a real URL to which you redirect.
You can store the HUIKHKJJHG in a Database and the real path also.
Or you can make your own 'scramble' routine that does something similar.

Of course you also have to pass all extra get or post parameters too to the
script you redirect to.

Regards,
Erwin Moller
>
thanks
Mistral
Jul 5 '06 #4

Erwin Moller писал(а):
mistral wrote:
Erwin Moller ?????(?):
mistral wrote:

Is there some handy URLs encryption method, to convert it into a
non-user readble format that still works on all browsers? I saw some
examples which escapes characters in the URL address into the 'escaped'
representation, but they may be suitable for long URLs, its too
noticeable and simplified for short URLs..
Hi,
You could have a look at mod_rewrite for Apache, but I don't expect
encrypting/decrypting an URL will be 'handy'.
Of course, the domain should stay intact.
eg:
http://www.example.com/mydir/mysubdir/myscript.php
could be converted into something like:
http://www.example.com/jHgyrRWfdjkLKhj
where you decode jHgyrRWfdjkLKhj into mydir/mysubdir/myscript.php
I am curious: What is the point?
Do you want to hide pathinfo?
If so: That won't give real security, only obscurity.
Regards,
Erwin Moller

Hi,

not sure for mod_rewrite for Apache, I have no unix. The point is
obscure URL, to hide patch info, include domain.
Hi,

mod_rewrite is indeed Apache only, but Apache is running great on W$ for
years now. (From W2000 and higher)
No reason to stick with that securityhole called IIS if you can get Apache
for free. (if you use IIS in the first place. :P )
If you are stuck with IIS for some reason, I don't know how to do the trick
easily.
Of course you can roll your own, like this:
http://example.com/redirectme.php?obsured=HUIKHKJJHG
where you translate HUIKHKJJHG to a real URL to which you redirect.
You can store the HUIKHKJJHG in a Database and the real path also.
Or you can make your own 'scramble' routine that does something similar.
Of course you also have to pass all extra get or post parameters too to the
script you redirect to.
Regards,
Erwin Moller
----------------------------------------

I meant direct url obfuscating, without involving of Apache or IIS.
Just cloacking url into something like
http://d3d3Lmdvb2dsZS5jb20vdGhlcGFnZS9wYXRjaC8= or similar, but
recognizable by web browsers.

I tried encode url into base64, but browser not recognize url.
thanks,

Mistral

Jul 5 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Cliff | last post by:
We are trying to connect to 3 different Oracle databases using MS Access as the front-end and ODBC as the connection. The problem that we are having is that 1 of the databases requires a...
113
by: Bonj | last post by:
I was in need of an encryption algorithm to the following requirements: 1) Must be capable of encrypting strings to a byte array, and decyrpting back again to the same string 2) Must have the same...
7
by: Alan Silver | last post by:
Hello, I am writing a page where sensitive data is collected (over SSL) and stored in a database. I have been looking at the .NET encryption classes, but am a bit confused as to which is best...
2
by: Sumit Gupta | last post by:
Can anyone please tell me how to encrpt string or any kind of Data. Also the Algorithm of Compression. Any Link tutorial etc. Like : Zip or RAR Formats etc.
9
by: sweety | last post by:
Dear All, How to encrypt a C data file and make binary file and then have to read a bin file at run time and decrypt the file and have to read the data. Any help to achive this pls. Would be...
4
by: pintu | last post by:
Hello everybody.. I hav some confusion regarding asymmetric encryption.As asymmetric encryption it there is one private key and one public key.So any data is encrypted using private key and the...
1
by: =?Utf-8?B?bWljcm9ob2Y=?= | last post by:
Short version: Is there a way to configure (preferably programmatically) the max encryption strength that will be used by the framework when connecting to a particular SSL-protected web service? ...
11
by: John Williams | last post by:
I've written a simple program to do XOR encryption as my first foray into understanding how encryption works. The code compiles fine, however it segmentation faults on every run. using gdb to...
22
by: j1mb0jay | last post by:
I have had to create a simple string encryption program for coursework, I have completed the task and now have to do a write up on how it could be improved at a later date. If you could look...
19
by: klenwell | last post by:
Another request for comments here. I'd like to accomplish something like the scheme outlined at this page here: http://tinyurl.com/3dtcdr In a nutshell, the form uses javascript to hash...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.